package com.edu.bean;

public class A {

    private B b;

    public B getB() {
        return b;
    }

    public void setB(B b) {
        System.out.println("A执行了setB方法");
        this.b = b;
    }

    public A() {
        System.out.println("执行了A的构造方法");
    }
}
